
 require("../../../lib/fonts/iconfont.css")
 
/**
 * 手机号格式验证
 */
 function phoneCheck(PhoneNum) {
        return /^1[3-9]\d{9}$/.test(PhoneNum) //规则写在/ /之间，以^开始以$结束
    }
/**
 * 密码验证
 */
 function popBox(icon, tipsText) {
 let divDom = document.createElement('div')
divDom.classList.add('module-box')
 divDom.classList.add('abs')
divDom.classList.add('disflex')
divDom.innerHTML = `
    <div class="module-box abs disflex">
        <div class="module-box-content tcenter fon12 colorf">
            <i class="iconfont ${icon}"></i>
            <p class="jump">${tipsText}</p >
        </div>
     </div>
     `
    document.body.append(divDom)
    setTimeout(function(){
         divDom.style.display ='none'
         },2001)
    }



// 挂载到window对象上
window.$util = {
    popBox,
    phoneCheck
}
